<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>HouDun许愿墙</title>
    <link rel="stylesheet" href="__ROOT__/Public/Wish/Css/index.css"/>
    <script type="text/javascript">
        var addUrl = "{:U('ajaxAdd','','')}";
    </script>
    <script type="text/javascript" src='__ROOT__/Public/Wish/Js/jquery-1.7.2.min.js'></script>
    <script type="text/javascript" src='__ROOT__/Public/Wish/Js/index.js'></script>
</head>
<body>
<div id='top'>
    <span id='send'></span>
</div>
<div id='main'>
    <foreach name="wishs" item="wish">
        <dl class='paper a{:mt_rand(1,5)}'>
            <dt>
                <span class='username'>{$wish.Username}</span>
                <span class='num'>No.{$wish.ID}</span>
            </dt>
            <dd class='content'>{$wish.Content}</dd>
            <dd class='bottom'>
                <span class='time'>{$wish.Time}</span>
                <a href="{:U('delete','','')}?id={$wish.ID}" class='close'></a>
            </dd>
        </dl>
    </foreach>
</div>

<div id='send-form'>
    <p class='title'><span>许下你的愿望</span><a href="" id='close'></a></p>

    <form action="{:U('add','','')}" name='wish' method="POST">
        <p>
            <label for="username">昵称：</label>
            <input type="text" name='username' id='username'/>
        </p>

        <p>
            <label for="content">愿望：(您还可以输入&nbsp;<span id='font-num'>50</span>&nbsp;个字)</label>
            <textarea name="content" id='content'></textarea>

        <div id='phiz'>
            <img src="__ROOT__/Public/Wish/Images/phiz/zhuakuang.gif" alt="抓狂"/>
            <img src="__ROOT__/Public/Wish/Images/phiz/baobao.gif" alt="抱抱"/>
            <img src="__ROOT__/Public/Wish/Images/phiz/haixiu.gif" alt="害羞"/>
            <img src="__ROOT__/Public/Wish/Images/phiz/ku.gif" alt="酷"/>
            <img src="__ROOT__/Public/Wish/Images/phiz/xixi.gif" alt="嘻嘻"/>
            <img src="__ROOT__/Public/Wish/Images/phiz/taikaixin.gif" alt="太开心"/>
            <img src="__ROOT__/Public/Wish/Images/phiz/touxiao.gif" alt="偷笑"/>
            <img src="__ROOT__/Public/Wish/Images/phiz/qian.gif" alt="钱"/>
            <img src="__ROOT__/Public/Wish/Images/phiz/huaxin.gif" alt="花心"/>
            <img src="__ROOT__/Public/Wish/Images/phiz/jiyan.gif" alt="挤眼"/>
        </div>
        </p>
        <span id='send-btn'></span>
        <!--<input type="submit" value="许愿"/>-->
    </form>
</div>
<!--[if IE 6]>
<script type="text/javascript" src="__ROOT__/Public/Wish/Js/iepng.js"></script>
<script type="text/javascript">
    DD_belatedPNG.fix('#send,#close,.close', 'background');
</script>
<![endif]-->
</body>
</html>